package day1109.observer;

/**
 * @author Mr.ma
 * @since 2022/11/9 16:09
 **/
public class BiddersEntity extends Bidders{
    private String name;
    /**
     * 参与的拍卖会信息
     * @param name
     * @param auctioneer
     */
    public BiddersEntity(String name, AuctioneerAbstract auctioneer) {
        this.name = name;
        this.auctioneer = auctioneer;
        auctioneer.attend(this);
    }

    @Override
    public void getPrice() {
        System.out.println(name + "收到当前报价为：" + auctioneer.getAuctionPrice() + "，正在考虑是否加价");
    }
}
